package edu.sctu.practice.class01.wujiayi.assing02.rational;

/**
 * Created by acer1 on 2015/10/15.
 */
public class RationalMain {
    public static void main(String[] args) {
        float number1 = 6;
        float number2 = 5;

        Rational rational = new Rational();

        rational.sum(number1, number2);

        rational.division(number1, number2);

        rational.multiplicat(number1, number2);

        rational.subduction(number1, number2);

        System.out.println("加法：" + rational.sum(number1, number2));
        System.out.println("除法：" + rational.division(number1, number2));
        System.out.println("乘法：" + rational.multiplicat(number1, number2));
        System.out.println("减法：" + rational.subduction(number1, number2));
    }
}
